<?php
/**
 * com_easiv3
 * 
 * @author Lukas Gruber
 * @copyright 2012, Lukas Gruber
 * @license GNU/GPLv3 - http://www.gnu.org/licenses/gpl-3.0.html
 * @contact lukasgruber@gmx.net
 * @website http://www.lukasg255.bplaced.net
 */

defined('_JEXEC') or die();

jimport('joomla.application.component.view');

class Easiv3ViewManageExtensions extends JView {
	
	function display($tpl = null) {
		$this->addToolbar();
		echo "";
		/**
		 * get data from model
		 */
		$this->extensions = $this->get('Extensions');
		$this->localInstallStatus = $this->get('LocalInstallStatus');
		$this->remoteInstanceObjects = $this->get('RemoteInstanceObjects');
		$this->remoteInstallStatus = $this->get('RemoteInstallStatus');
		
		parent::display($tpl);
	}
	
	function addToolbar() {
		JToolbarHelper::title(JText::_('com_EASIV3_MANAGEEXTENSIONS_VIEW_TITLE'), 'checkin.png');
		JToolbarHelper::addNewX('manageExtensions.install', JText::_('com_EASIV3_MANAGEEXTENSIONS_VIEW_BUTTON_INSTALL'));
		JToolbarHelper::cancel('manageExtensions.uninstall', JText::_('com_EASIV3_MANAGEEXTENSIONS_VIEW_BUTTON_UNINSTALL'));
		JToolbarHelper::divider();
		JToolBarHelper::custom('manageExtensions.gotoInstances', 'back', 'back', JText::_('com_EASIV3_MANAGEEXTENSIONS_VIEW_BUTTON_GOTO_INSTANCEMANAGEMENT'), false);
	}
}